package com.chinasofti;

public class Demo02 {
    public static void main(String[] args) {
        Student student = new Student();
        Student student1 = new Student(12);

    }
}
class Student{
    {
        System.out.println("123");
    }
    public Student() {
        System.out.println("无参构造");
    }
    public Student(int a) {
        System.out.println("有参构造");
    }
}